/**
 *Author: guanpf 992093924@qq.om
 *Date: 2023-06-26 16:03:37
 *LastEditTime: 2023-08-26 00:57:29
 *LastEditors: guanpf
 *Description: 
 *FilePath: /ZCGL_WX/src/store/modules/user.js
 */
const state = {
  approver:{},
  userInfo: {},
  signInfo: {},
  registration:{},
  // token:''
}

const mutations = {
  SET_USER_INFO (state, info) {
    state.userInfo = info
  },
  
  SET_SIGN_INFO (state, info) {
    state.signInfo = info
  },
  
  SET_REGISTRATION (state, info) {
    state.registration = info
  },

  SET_APPROVER_INFO (state, info) {
    state.approver = info
  },
}

const actions = {
  setUserInfo({commit, state},_data){
    commit("SET_USER_INFO",_data)
  },

  setSignInfo({commit, state},_data){
    commit("SET_SIGN_INFO",_data)
  },

  setRegistration({commit, state},_data){
    commit("SET_REGISTRATION",_data)
  },

  setApproverInfo({commit, state},_data){
    commit("SET_APPROVER_INFO",_data)
  },
}

export default {
  namespaced: true,
  state,
  mutations,
  actions
}
